//
//  HKDBaseButton.m
//  LiveCircle
//
//  Created by Perfector on 15/11/21.
//  Copyright © 2015年 Perfector. All rights reserved.
//

#import "HKDBaseButton.h"

@implementation HKDBaseButton
+(UIButton *)creatButtonWithType:(int)type
                    andWithTitle:(NSString *)title
                   andWithTarget:(id)target
                  andWithCGFrame:(CGRect)frame
                   andWithAction:(SEL)action{

    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = frame;
    [btn setTitle:title forState:UIControlStateNormal];
    
    [btn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    
    return btn;
}

@end
